package com.cskaoyan.controller.wx.feedback;

import com.cskaoyan.bean.MarketFeedback;
import com.cskaoyan.bean.bo.wx.FeedbackSubmitBo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.User;
import com.cskaoyan.service.wx.feedback.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bwj
 * @Date: 2022/09/09/23:14
 * @Description:
 */
@RestController
@RequestMapping("wx/feedback")
public class FeedbackController {
    @Autowired
    FeedbackService feedbackService;

    /**
     * @Author: 宾文杰 @Description: 反馈提交 @Date: 2022/9/9
     */
    @RequestMapping("submit")
    public BaseRespVo<String> submit(@RequestBody MarketFeedback submitBo) {
        feedbackService.submit(submitBo);
        return BaseRespVo.ok(null);
    }
}
